package com.lechuang.thread.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <p>
 *
 * </p>
 * @author liaoningbo
 * @since 2023/6/7
*/
@Data
@ConfigurationProperties("thread")
public class ThreadProperties {

    private boolean enable = false;

    /** 核心线程数 */
    private int corePoolSize = 1;

    /** 最大线程数 */
    private int maxPoolSize = 1;

    /** 缓存队列 */
    private int queueCapacity = 1;

    /** 允许的空闲时间 */
    private int keepAlive = 3000;
}
